package com.graduation.springbootinit.model.entity.ActivityPart;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("community_activities_points_record")
public class PointsRecord {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 变动积分数(正数为增加，负数为减少)
     */
    private Integer points;
    
    /**
     * 变动类型(1-签到,2-评论,3-兑换礼品,4-其他)
     */
    private Integer type;
    
    /**
     * 变动描述
     */
    private String description;
    
    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
} 